package com.link.base.base.report.service;

import com.link.base.base.report.dao.mybatis.mapper.ConsumerAreaReportMapper;
import com.link.base.base.report.model.ConsumerAreaReport;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 消费者活跃区域分析-
 *
 * @author 谢鑫
 * @date 2019/09/29 09:30
 */
@Service
public class ConsumerAreaReportServiceImpl extends BasicServiceImpl<ConsumerAreaReport> implements ConsumerAreaReportService {

    @Resource
    private ConsumerAreaReportMapper consumerAreaReportMapper;

    @Override
    public BasicMapper<ConsumerAreaReport> getBasicMapper() {
        return consumerAreaReportMapper;
    }

    /**
     * 查询每个省的总人数和所占百分比
     *
     * @return
     */

    @Override
    public List<ConsumerAreaReport> queryBySumExamplePage(ConsumerAreaReport consumerAreaReport) {
        return consumerAreaReportMapper.querySumByExamplePage(consumerAreaReport);
    }

    @Override
    public List<ConsumerAreaReport> queryProvinceByExamplePage(ConsumerAreaReport consumerAreaReport) {
        return consumerAreaReportMapper.queryProvinceByExamplePage(consumerAreaReport);
    }


}

